package com.zlp.mall.modules.cms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zlp.mall.common.api.Pager;
import com.zlp.mall.modules.cms.dto.resp.SubjectResp;
import com.zlp.mall.modules.cms.model.Subject;

import java.util.List;

/**
 * <p>
 * 专题表 服务类
 * </p>
 *
 * @author ZouLiPing
 * @since 2021-10-08
 */
public interface SubjectService extends IService<Subject> {

    /**
     * 根据专题名称分页获取专题
     * @param keyword
     * @param pageNum
     * @param pageSize
     * @date: 2021/10/9 14:48
     * @return: com.zlp.mall.common.api.Pager<com.zlp.mall.modules.cms.dto.resp.SubjectResp>
     */
    Pager<SubjectResp> getPageList(String keyword, Integer pageNum, Integer pageSize);


    /**
     *获取全部商品专题
     * @date: 2021/10/9 14:49
     * @return: java.util.List<com.zlp.mall.modules.cms.dto.resp.SubjectResp>
     */
    List<SubjectResp> listAll();
}
